package kr.hkit.powerjava.chapter06.submit2;

import java.util.Scanner;

public class If_work05{
	public static void main(String[] args) {
		int a,b,c;
		int small = 0;
		Scanner input = new Scanner (System.in);
		System.out.print("3개의 정수를 입력하시오: ");
		a = input.nextInt();
		b = input.nextInt();
		c = input.nextInt();
		
		if (a>b){
			if (b>c) {
				small = c;
			} else {
				small = b;
			} 
		}
		else 
			if (b<c){
				small = a;  
			}else if (a<c) {
				small = a;
			} else {
				small = c;
			}
		 System.out.println("가장 작은 값은 " + small + "입니다. ");
		}
}

